package com.example.demo.sql;

import cn.hutool.core.io.resource.ResourceUtil;
import cn.hutool.json.JSONUtil;

public class TestMain {
    public static void main(String[] args) {
        // 从资源目录中读取 param.json 文件
        String jsonContent = ResourceUtil.readUtf8Str("param.json");
        SqlEntity sqlEntity = JSONUtil.toBean(jsonContent, SqlEntity.class);
        System.out.println(sqlEntity);
        String sql = SqlUtil.getSql(sqlEntity);
        System.out.println(sql);
    }
}
